package com.example.taluo.entity.dto.gamedto;


import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

/*** @Author supersaiya
 * @Description TODO

 * @Date 2025/2/18 16:53

 * @Version 1.0*/
@Getter
@Setter
@ToString
public class PlayerState {
    private String id;
    private List<Card> deck; // 牌库
    private List<Card> hand; // 手牌
    private int life; // 生命值

    public PlayerState(String id) {
        this.id = id;
        this.deck = new ArrayList<>();
        this.hand = new ArrayList<>();
        this.life = 100; // 初始生命值
    }

    public String getId() {
        return id;
    }

    public List<Card> getDeck() {
        return deck;
    }

    public void setDeck(List<Card> deck) {
        this.deck = deck;
    }

    public List<Card> getHand() {
        return hand;
    }

    public void setHand(List<Card> hand) {
        this.hand = hand;
    }

    public int getLife() {
        return life;
    }

    public void setLife(int life) {
        this.life = life;
    }
}